package cn.com.dhcc.turbo.entity.stat.wapper;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;

import cn.com.dhcc.app.core.handler.dbhandler.WappedResultSet; 
import cn.com.dhcc.turbo.entity.stat.ExchStatManage;

public class ExchStatManageRowWapper implements RowMapper<ExchStatManage> {

	@Override
	public ExchStatManage mapRow(ResultSet rss, int rowNum) throws SQLException {
		WappedResultSet rs = new WappedResultSet(rss);
		ExchStatManage vo = new ExchStatManage();
		vo.setId(rs.getString("id"));  
		vo.setFrom_node_id(rs.getString("from_node_id"));
		vo.setTo_node_id(rs.getString("to_node_id"));
		vo.setData_type_id(rs.getString("data_type_id"));
		vo.setStat_level(rs.getString("stat_level"));
		vo.setNum(rs.getString("num")); 
		vo.setReg_type(rs.getString("reg_type"));
		vo.setSumNum(rs.getString("sumnum"));
		vo.setNT(rs.getString("nt"));
		vo.setMtime(rs.getString("mtime"));
		vo.setFrom_id(rs.getString("from_id"));
		vo.setTo_id(rs.getString("to_id")); 
		vo.setFrom_num(rs.getString("from_num"));
		vo.setSend_num(rs.getString("send_num"));
		vo.setNode_name(rs.getString("node_name"));
		vo.setSys_name(rs.getString("sys_name")); 
		vo.setFrom_name(rs.getString("from_name"));
		vo.setTo_name(rs.getString("to_name"));
		return vo;
	}

}
